const bike = {
	state: {
		// 车辆信息
		carInfo: {},
		// 轨迹信息
		locusInfo: {},
		// 报警查询-报警类型
		warnInfo: uni.getStorageSync('warnInfo') || {},
		// 安全查询-报警类型
		safeInfo: uni.getStorageSync('safeInfo') || {},
		pictureLists: [],
		photoLists: [],
		teamInfo: {
			teamName: '全部车辆',
			teamId: ''
		},
		// 区域统计
		regionLists: [],
		// msgTemplate 数据展示
		templateLists: [],
		// indexTarbar 数据
		indexTarbarData: {}
	},
	mutations: {
		SET_CAR_INFO(state, params) {
			state.carInfo = params;
		},
		SET_LOCUS_INFO(state, params) {
			state.locusInfo = params;
		},
		SET_WARN_INFO(state, params) {
			state.warnInfo = params;
		},
		SET_SAFE_INFO(state, params) {
			state.safeInfo = params;
		},
		SET_PICTURE_LISTS(state, params) {
			state.pictureLists = params;
		},
		SET_PHOTO_LISTS(state, params) {
			state.photoLists = params;
		},
		SET_TEAM_INFO(state, params) {
			state.teamInfo = params;
		},
		SET_REGION_LISTS(state, params) {
			state.regionLists = params;
		},
		SET_TEMPLATE_LISTS(state, params) {
			state.templateLists = params;
		},
		SET_INDEXTARBAR_DATA(state, params) {
			state.indexTarbarData = {
				...state.indexTarbarData,
				...params
			};
		}
	}
}
export default bike;